package com.avertymaroc.library;

public class C {
	// constates
	
	public static final String TAG_SUCCESS 				= "success";  // indicateur de succes ou echec par les 2 valeurs 0 et 1
	public static final String TAG_ERRORS 				= "errors"; 
	public static final String TAG_RESULT 				= "resultats"; 
	public static final String TAG_INDICATEUR  			= "indecateur"; //indicateur du type d 'erreur
	public static final String TAG_ETAT		  			= "etat";
	public static final String TAG_INFOS		  		= "infos";
	public static final String INDIC_FORM_ERREUR  		= "erreurform"; // erreur de validation de formulaire
	public static final String INDIC_MP_INVALIDE	 	= "mpinvalide"; // mot de passe ou email invalide
	public static final String INDIC_M_NONACTIVE	 	= "nonactive";	//deja inscrit mais le mail est non activer email non active
	
	
	// user
	public static final String TAG_ID 					= "id"; 
	public static final String TAG_PRENOM 				= "prenom"; 
	public static final String TAG_POINTS 				= "points"; 
	public static final String TAG_EMAIL 				= "email"; 
	public static final String TAG_PASSE 				= "mdp"; 
	public static final String TAG_ANNEE 				= "annee"; 
	public static final String TAG_SEXE 				= "sexe"; 
	public static final String TAG_VILLE 				= "ville"; 
	public static final String TAG_PROFESSION			= "profession"; 
	public static final String TAG_TEL					= "tel";
	public static final String ICON_BTN_ID				= "bouttonid";
	public static final String TITRE_BTN				= "titre";
	
	public static final int TAG_FINISH 					= 100; 
	public static final int TAG_AUTH_SUCCES				= 101; 
	
	
	public static final int    EXTRA					= 0;
	public static final int    NON_ACTIVE				= 1;
	public static final int    EXISTE_DEJA				= 2;
	public static final int    VALIDE					= 3;
	public static final int    ERREUR_FORM				= 99;
	
	
	public static String base_url(){
		return "http://averty.ma";
	}
	public static String base_url(String url){
		return "http://averty.ma/"+url;
	}
	
	public static String site_url()
	{
		 return base_url("fr");
	}
	public static String site_url(String url){
		
		return  site_url() + "/" + url;
	}
	
	
}
